<?php

setcookie ("admin_page", "tables_manager",(60*60*24)+time(),"/admin");

define("OK","^_^_ok_");
require_once "../include.php";
require_once ADMIN_DIR."config.php";
$user = new ADMIN_user();
if( !$user->checkUser() ) {
	require_once ADMIN_DIR."login.php";
	require_once ADMIN_DIR."template.php";
	die($CONTENT);
}

if( isset($_COOKIE['admin_page']) ) {
	switch ($_COOKIE['admin_page']) {
		case "tables_manager":
			require_once ADMIN_DIR."tables_manager.php";
			break;
		case "":
			echo "i равно 1";
			break;
		case "":
			echo "i равно 2";
			break;
	}
}


require_once "./template.php";
echo $CONTENT;
?>